<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="robot" content="index,follow">
<title>Module tst - Module testing - Forth Foundation Library</title>
</head>
<body>
<h2>tst - Module testing</h2>
<h3>Module Description</h3>
<p>The tst module implements a module testing framework.
</p>
<h3>Module Words</h3>
<dl>
</dl>
<h4>Test syntax words</h4>
<dl>
<dt><a name="word1"><b>t{</b>	( -- )</dt>
<dd>Start a test</dd>
<dt><a name="word2"><b>}t</b>	( i*x j*r -- )</dt>
<dd>Check for stack overflow</dd>
</dl>
<h4>Test value words</h4>
<dl>
<dt><a name="word3"><b>?s</b>	( n1 n2 -- )</dt>
<dd>Check for signed value on stack</dd>
<dt><a name="word4"><b>?u</b>	( u1 u2 -- )</dt>
<dd>Check for unsigned value on stack</dd>
<dt><a name="word5"><b>?d</b>	( d1 d2 -- )</dt>
<dd>Check for a signed double on stack</dd>
<dt><a name="word6"><b>?ud</b>	( ud1 ud2 -- )</dt>
<dd>Check for an unsigned double on stack</dd>
<dt><a name="word7"><b>?0</b>	( x -- )</dt>
<dd>Check for zero value on stack</dd>
<dt><a name="word8"><b>?nil</b>	( addr -- )</dt>
<dd>Check for nil value on stack</dd>
<dt><a name="word9"><b>?true</b>	( flag -- )</dt>
<dd>Check for true value on stack</dd>
<dt><a name="word10"><b>?false</b>	( flag -- )</dt>
<dd>Check for false value on stack</dd>
<dt><a name="word11"><b>?r</b>	( r1 r2 -- )</dt>
<dd>Check for float value on stack</dd>
<dt><a name="word12"><b>?str</b>	( c-addr1 u1 c-addr2 u2 -- )</dt>
<dd>Check for a string on the stack</dd>
</dl>
<h4>Test results words</h4>
<dl>
<dt><a name="word13"><b>tst-reset-tests</b>	( -- )</dt>
<dd>Reset the test results</dd>
<dt><a name="word14"><b>tst-get-result</b>	( -- u1 u2 u3 )</dt>
<dd>Get the test results, return the test time u1, the number of tests u2 and the number of errors u3</dd>
</dl>
<hr>
<div align="center">generated 24-Jul-2010 by <b>ofcfrth-0.10.0</b></div>
</body>
</html>
